/**
 * 
 */
package com.boronstream.istar.http;

import com.boronstream.istar.PlayApplication;
import com.boronstream.istar.R;

/**
 * @author Stream
 * 
 */
public interface PlayRequestListener {

	public void onRequestFinished(ResultType resultType, PlayResponse response);

	public enum ResultType {
		/****/
		SUCCESS(""),
		/**
		 * 
		 */
		TIME_OUT(PlayApplication.context.getString(R.string.state_time_out)),
		/**
		 * 
		 */
		REQUES_FORBIDDEN(PlayApplication.context.getString(R.string.state_unknown_error)),
		/**
		 * 
		 */
		REQUES_ERROR(PlayApplication.context.getString(R.string.state_request_error)),
		/**
				 * 
				 */
		NO_PERMISSION(PlayApplication.context.getString(R.string.state_unknown_error)),

		/**
				 * 
				 */
		NO_NETWORK(PlayApplication.context.getString(R.string.state_no_network)),
		/**
		 * 
		 */
		SERVER_ERROR(PlayApplication.context.getString(R.string.state_unknown_error)),
		

		/**
		 * 
		 */
		UNKNOWN_ERROR(PlayApplication.context.getString(R.string.state_unknown_error));
		
		ResultType(String nativeString) {
			this.nativeString = nativeString;
		}

		public final String nativeString;
	}
}
